//
//  BPAVPlayer.h
//  BPTV
//
//  Created by baipeng on 2018/11/15.
//  Copyright © 2018年 Apple Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BPAVPlayer : NSObject
//语音文件总时长 单位s
@property (nonatomic,assign) float totalTime;
//播放链接
@property (nonatomic,copy)NSString *urlPath;
//播放进度
@property (nonatomic, assign) CGFloat progress;
//是否播放
@property(nonatomic,assign)BOOL isPlaying;

+(instancetype)shareInstance;
/** 初始化方法 */
-(void)playWithUrlString:(NSString *)urlString view:(UIView *)view frame:(CGRect)frame;
/** 播放 */
-(void)play;
/** 暂停 */
-(void)pause;
/** 停止 */
-(void)stop;
/** 改变播放进度 */
-(void)seekToProgress:(CGFloat)progress;





@end


